#include<stdio.h>
int main()
{
    int n,high;
    scanf("%d",&n);
    high = (n+1)/2;
    for(int i = 1;i<=high;i++)
    {
        for(int j = 1;j<=high-i;j++)
        {
            printf("  ");
        }
        for(int k =1;k<=2*i-1;k++)
        {
            printf("* ");
        }
        printf("\n");
    }
      for(int i=high-1;i>=1;i--)
  {
          
      for(int j=1;j<=high-i;j++)
    {
      printf("  ");
    }    
      for(int k = 1;k<=2*i-1;k++)
      {
        printf("* ");
          
      }
      printf("\n");
      
      
      
      
   }
    return 0;

}        
